<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/27
 * Time: 14:38
 */
namespace app\web\validate;

use think\Validate;

class InformationValidate extends Validate
{
    protected $rule = [
        'type' => 'require',
        //'languageType' => 'require',
    ];
    protected $message = [
        'type.require' => '请指定信息类型！',
        //'languageType.require' => '语音类型不能为空！',
    ];

    protected $scene = [
//        'add'  => ['user_login,user_pass,user_email'],
//        'edit' => ['user_login,user_email'],
    ];
}